package com.vm.osm.business.dto.eam.equ_part;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 查询企业配件请求
 *
 * @author Xuerong Xue
 */
@Data
public class SearchEamEquPartReq implements Serializable {
    @JsonIgnore
    private String session_id;
    @ApiModelProperty("配件类型Id列表")
    private List<String> equ_part_type_ids;
    @ApiModelProperty(value = "分页大小", required = true)
    private Integer page_size;
    @ApiModelProperty(value = "分页数", required = true)
    private Integer page_num;
    @ApiModelProperty("选择查询类型（1：品牌、2：配件编码、3：型号）")
    private Byte select_type;
    @ApiModelProperty("选择查询值")
    private String select_value;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("page_size", page_size)
                .add("page_num", page_num)
                .add("session_id", session_id)
                .add("equ_part_type_ids", equ_part_type_ids)
                .add("select_type", select_type)
                .add("select_value", select_value)
                .toString();
    }
}
